<%@ page import="pojo.Teacher" %><%--
  Created by IntelliJ IDEA.
  User: 33503
  Date: 2023/11/25
  Time: 14:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
    <title>教师个人信息</title>
    <style>
        input {
            width: 300px;
            height: 30px;
        }

        .teacher-box {
            background-color: white;
            color: black;
            margin-left: 230px;
            margin-top: 30px;
            border-radius: 10px
        }

        .in-teacher-box {
            background: rgba(255, 255, 255, 0.6);
            box-shadow: 4px 4px 4px 4px #b3d4fc;
            padding: 10px;
            margin: 10px;
            width: 50%;
            font-size: 20px;
            border-radius: 15px
        }
    </style>
</head>
<body>
<%--菜单栏--%>
<jsp:include page="teacher_menu.jsp"></jsp:include>
<h1 align="center" style="margin-left: 230px">教师个人信息</h1>
<div align="center" class="teacher-box">
    <div align="center" class="in-teacher-box">
        <%
            Teacher t1 = (Teacher) session.getAttribute("LOGIN_TEACHER");
        %>
        <form method="POST" action="${pageContext.request.contextPath}/UpdateTeacher"/>
        账&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:
        <input type="text" name="t_id" value="<%=t1.getT_id()%>" readonly/><br/><br/>
        姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名: <input type="text" name="t_name"
                                                         value="<%=t1.getT_name()%>"/><br/><br/>
        联系方式: <input type="text" name="t_phone" value="<%=t1.getT_phone()%>"/><br/><br/>
        密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码: <input type="text" name="t_pwd" value="<%=t1.getT_pwd()%>"/><br/><br/>
        <input type="submit" value="保存修改" onclick="alert('修改成功！将回到登录页面重新登录')"
               style="background-color: #286090; color: white; width: 100px;height: 35px"/>
        </form>
    </div>
</div>


</body>
</html>
